package com.woniu.mapper;

import com.woniu.entity.PatientSurgery;
import com.woniu.vo.PatientSurgeryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author FQY
* @description 针对表【patient_surgery(患者手术记录表)】的数据库操作Mapper
* @createDate 2025-11-04 20:06:15
* @Entity com.woniu.entity.PatientSurgery
*/
public interface PatientSurgeryMapper {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(PatientSurgery record);

    Integer insertSelective(PatientSurgery record);

    PatientSurgery selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(PatientSurgery record);

    Integer updateByPrimaryKey(PatientSurgery record);

    List<PatientSurgeryVO> findAll();

    List<PatientSurgeryVO> selectByConditionVO(@Param("patientName") String patientName,
                                               @Param("doctorName") String doctorName,
                                               @Param("status") Integer status);

    // 更新手术收费表状态
    void updateSurgeryFeeStatus(@Param("id") Integer id);

    // 从手术申请同步数据
    void syncFromSurgeryApplication();


}
